local huanfu = fk.CreateSkill({
  name = "pc__huanfu", 
  tags = {Skill.Compulsory , Skill.Switch}, 
})

huanfu:addEffect(fk.TargetConfirmed, {
  anim_type = "switch",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(huanfu.name) and
      data.card.type == Card.TypeTrick
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local state = player:getSwitchSkillState(huanfu.name)
    if state == fk.SwitchYang then
      room:recover{
        who = player,
        num = 1,
        recoverBy = player,
        skillName = huanfu.name,
      }
    elseif state == fk.SwitchYin then
      room:damage{
      from = nil,
      to = player,
      damage = 1,
      skillName = huanfu.name,
      }
    end
  end
})


Fk:loadTranslationTable {
["pc__huanfu"] = "宦浮",
[":pc__huanfu"] = "<b>锁定技</b>，<b>转换技</b>，当你成为锦囊牌的目标后，阳：你受到1点伤害；阴：你回复1点体力。",
["$pc__huanfu1"] = "宦海沉浮，莫问前路。",
["$pc__huanfu2"] = "仕途险恶，吉凶难料。",
}
return huanfu